<div class="hr-line-dashed"></div>
<div class="form-group">
    <div class="col-sm-4 col-sm-offset-2">
        <button class="btn btn-primary" type="submit">{{ submit_btn_name }}</button>
        <a class="btn btn-white" href="javascript:history.go(-1)">取消</a>
    </div>
</div>

<script>
    $(document).ready(function () {
        var fieldObj = $('.form-horizontal input')
        for (var i = 0; i < fieldObj.length; i++) {
            $(fieldObj[i]).addClass('form-control')
        }
        fieldObj = $('.form-horizontal textarea')
        for (var i = 0; i < fieldObj.length; i++) {
            $(fieldObj[i]).addClass('form-control')
        }

        fieldObj = $('.form-horizontal select')
        for (var i = 0; i < fieldObj.length; i++) {
            $(fieldObj[i]).addClass('form-control')
        }
    })
</script>